import request from '@/utils/request'

// 查询产品试剂代码列表
export function listProjectReagentCode(query) {
  return request({
    url: '/product/projectReagentCode/list',
    method: 'get',
    params: query
  })
}

// 查询产品试剂代码详细
export function getProjectReagentCode(projectReagentCodeId) {
  return request({
    url: '/product/projectReagentCode/' + projectReagentCodeId,
    method: 'get'
  })
}
// 查询产品试剂代码详细
export function getProjectReagentCodeDetail(query) {
  return request({
    url: '/product/projectReagentCode/getInfo',
    method: 'get',
    params:query
  })
}

// 新增产品试剂代码
export function addProjectReagentCode(data) {
  return request({
    url: '/product/projectReagentCode',
    method: 'post',
    data: data
  })
}
// 批量新增产品试剂代码
export function addProjectReagentCodeBatch(data) {
  return request({
    url: '/product/projectReagentCode/addBatch',
    method: 'post',
    data: data
  })
}

// 修改产品试剂代码
export function updateProjectReagentCode(data) {
  return request({
    url: '/product/projectReagentCode',
    method: 'put',
    data: data
  })
}

// 删除产品试剂代码
export function delProjectReagentCode(obj) {
  return request({
    url: '/product/projectReagentCode/' + obj,
    method: 'delete',
    param:obj
  })
}
// 删除产品试剂代码
export function delProjectReagentCodeBatch(data) {
  return request({
    url: '/product/projectReagentCode/removeBatch',
    method: 'delete',
    data:data
  })
}

// 导出产品试剂代码
export function exportProjectReagentCode(query) {
  return request({
    url: '/product/projectReagentCode/export',
    method: 'get',
    params: query
  })
}
